/**
 * Created by Administrator on 2017/6/13.
 */

var Poker = require('../Poker/Poker');

exports.qZhuangMode = {
    "FZZ" : 1,      // 房主当庄
    "JDQZ" : 2,     // 经典抢庄
    "LLZZ" : 3,     // 轮流坐庄
    "FFQZ" : 4      // 翻四张抢庄
};

exports.removeCards = [111, 112, 113, 211, 212, 213, 311, 312, 313, 411, 412, 413];

exports.defaultConst = {
    bet : 1,
    wuXiaoNiuValue : 10
};

var pattern = {
        "wuNiu" : 1,        // 无牛
        "niuYi" : 2,        // 牛一
        "niuEr" : 3,        // 牛二
        "niuSan" : 4,       // 牛三
        "niuSi" : 5,        // 牛四
        "niuWu" : 6,        // 牛五
        "niuLiu"  : 7,      // 牛六
        "niuQi" : 8,        // 牛七
        "niuBa" : 9,        // 牛八
        "niuJiu" : 10,      // 牛九
        "niuniu" : 11,      // 牛牛
        "yinNiu" : 12,      // 银牛
        "jinNiu" : 13,      // 金牛
        "boomNiu" : 14,     // 炸弹牛
        "wuXiaoNiu" : 15    // 五小牛
};

var patternScore = {};
patternScore[pattern.wuNiu] = 1;
patternScore[pattern.niuYi] = 1;
patternScore[pattern.niuEr] = 1;
patternScore[pattern.niuSan] = 1;
patternScore[pattern.niuSi] = 1;
patternScore[pattern.niuWu] = 1;
patternScore[pattern.niuLiu] = 1;
patternScore[pattern.niuQi] = 1;
patternScore[pattern.niuBa] = 2;
patternScore[pattern.niuJiu] = 2;
patternScore[pattern.niuniu] = 3;
patternScore[pattern.yinNiu] = 4;
patternScore[pattern.jinNiu] = 5;
patternScore[pattern.boomNiu] = 6;
patternScore[pattern.wuXiaoNiu] = 8;

// 用于处理游戏可用的常量
exports.Pattern = pattern;
exports.PatternScore = patternScore;